<?php defined('_JEXEC') or die('Restricted access'); ?>
<script type="text/javascript">
jQuery(function(){
	jQuery('.wikitextarea').bbcodeeditor(
	{
		bold:jQuery('.bold'),
										 italic:jQuery('.italic'),
										 underline:jQuery('.underline'),
										 link:jQuery('.link'),
										 quote:jQuery('.quote'),
										 code:jQuery('.icode'),
										 image:jQuery('.image'),
										 size:jQuery('.size'),
										 nlist:jQuery('.nlist'),
										 blist:jQuery('.blist'),
										 litem:jQuery('.litem'),
										 h1:jQuery('.h1'),
										 h2:jQuery('.h2'),
										 h3:jQuery('.h3'),
										 h4:jQuery('.h4'),
										 h5:jQuery('.h5'),
										 h6:jQuery('.h6'),
										//	 exit_warning:true,
										// preview:jQuery('.preview')
	});
});
		</script>
<?php
echo JhtraqHelper::drawTabs($this->project->slug);
?>
<p></p>
<div class="componentheading">
<?php echo $this->project->name; ?> - <?php echo JText::_('COM_JHTRAQ_WIKI');?> - <?php echo JText::_('COM_JHTRAQ_EDIT');?> <?php echo JhtraqHelper::renderWikiTitle(true);?>
</div>
<p>
<form action="<?php echo JRoute::_('index.php?option=com_jhtraq&view=wiki&project='.$this->project->slug.'&page='.JRequest::getVar('page'));?>" method="post">
<input type="hidden" name="page_name" value="<?php echo JRequest::getVar('page');?>" />
<input type="hidden" name="task" value="savepage">
<div class="wiki_editor">
<div class="btn bold" title="bold"></div>
<div class="btn italic"></div>
<div class="btn underline"></div>
<div class="btn size"></div>
<div class="btn separator"></div>
<div class="btn h1"></div>
<div class="btn h2"></div>
<div class="btn h3"></div>
<div class="btn h4"></div>
<div class="btn h5"></div>
<div class="btn h6"></div>
<div class="btn separator"></div>
<div class="btn nlist"></div>
<div class="btn blist"></div>
<div class="btn litem"></div>
<div class="btn separator"></div>
<div class="btn link"></div>
<div class="btn image"></div>
<div class="btn separator"></div>
<div class="btn quote"></div>
<div class="btn icode"></div>
<div class="btn separator"></div>


	
	<div><textarea name="body" class="wikitextarea"><?php echo stripslashes($this->wiki->body)?></textarea></div>
</div>
<div class="clear"><input type="submit" value="Save" /></div>
</form>
</p>
